package org.fkjava.binding;

import java.util.Date;

import org.fkit.converter.DateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.WebBindingInitializer;

/**
 * @Description: <br>
 *               网站：<a href="http://www.fkit.org">疯狂Java</a>
 * @author 肖文吉 36750064@qq.com
 * @version V1.0
 */
// 实现WebBindingInitializer接口
public class DateBindingInitializer implements WebBindingInitializer
{
    @Override
    public void initBinder(WebDataBinder binder)
    {
        // 注册自定义编辑器
        binder.registerCustomEditor(Date.class, new DateEditor());
    }
}
